<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2017/2/10
 * Time: 17:06
 */

namespace YMApi\Model;


use Think\Model;

/**
 * Class HomeTemplateStencilGoodsCategoryModel
 * @package SDXApi\Model
 */
class HomeTemplateStencilGoodsCategoryModel extends Model
{
	/**
	 * @var string
	 */
	protected $tableName = 'home_template_stencil_goods_category';

	/**
	 * Created by Jerry
	 * @param $id
	 * @return mixed
	 */
	public function findCategoryByStencilId($id)
	{
		$where = array(
			'stencil_id'	=>	$id,
		);

		return $this->where($where)->find();
	}
}